﻿using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AirlineBookingSystem.Flight.Core.Entities
{
    public class Flights
    {
        [BsonId]
        [BsonRepresentation(BsonType.String)]
        public Guid Id { get; set; }
        [BsonElement("FlightNumber")]
        [BsonRepresentation(BsonType.String)]
        public string FlightNumber { get; set; }
        [BsonElement("Origin")]
        [BsonRepresentation(BsonType.String)]
        public string Origin { get; set; }
        [BsonElement("Destination")]
        [BsonRepresentation(BsonType.String)]
        public string Destination { get; set; }
        [BsonElement("DepartureTime")]
        [BsonRepresentation(BsonType.DateTime)]
        public DateTime DepartureTime { get; set; }
        [BsonElement("ArrivalTime")]
        [BsonRepresentation(BsonType.DateTime)]
        public DateTime ArrivalTime { get; set; }

    }
}
